package com.jiyun.pojo.day03;
/*
 * @Author:limengyao
 * @Date:2023-08-14 18:39
 * @Filename:Train
 *
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
public class Train  implements Serializable {
    @TableId(value = "tid",type = IdType.AUTO)
    private  Integer tid;
    private  String tname;
    private  String img;
    private  String tags;
    private  Integer nums;
    private  Integer jd;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date starttime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endtime;
    private  String sort;
    private  Integer persons;
}
